import { createRouter, createWebHistory } from 'vue-router'
import FormEditor from '../views/FormEditor.vue'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            redirect: '/form-editor'
        },
        {
            path: '/form-editor',
            name: 'form-editor',
            component: FormEditor
        },
        // 其他路由可以在此添加
    ]
})

export default router